<?
$query = getLastFixture();
if(mysql_num_rows($query) > 0){
	$fetch = MySQL_Fetch_Array($query);
	$den = DateFormat::getDay($fetch["den"]);
	$last_date = DateFormat::format($fetch["datum"], DF_DDMMYYYYHHMM)." (".$den.")";
	$last_ht = $fetch["domaci"];
	$last_at = $fetch["hoste"];
	$last_hg = $fetch["b_domaci"];
	$last_ag = $fetch["b_hoste"];
}

$query = getNextFixture();
if(mysql_num_rows($query) > 0){
	$fetch = MySQL_Fetch_Array($query);
	$den = DateFormat::getDay($fetch["den"]);
	$next_date = DateFormat::format($fetch["datum"], DF_DDMMYYYYHHMM)." (".$den.")";
	$next_ht = $fetch["domaci"];
	$next_at = $fetch["hoste"];
}
?>
<div id="top-right">
<div style="margin-bottom: 15px;">
<table class="small-table px170">
	<tr>
		<th colspan=2><? echo $last_date;?></th>
	</tr>
	<tr>
		<td class="lefted"><? echo $last_ht;?></td>
		<td><? echo $last_hg;?></td>
	</tr>
	<tr>
		<td class="lefted"><? echo $last_at;?></td>
		<td><? echo $last_ag;?></td>
	</tr>
</table>
</div>

<div>
<table class="small-table px170">
	<tr>
		<th><? echo $next_date;?></th>
	</tr>
	<tr>
		<td class="lefted"><? echo $next_ht;?></td>
	</tr>
	<tr>
		<td class="lefted"><? echo $next_at;?></td>
	</tr>
</table>
</div>

</div>

<div class="correct"></div>
<div id="news-bar"><object
	classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
	codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
	width="400" height="22" id="swf/sestava" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="movie" value="./swf/news.swf" />
	<param name="quality" value="high" />
	<param name="bgcolor" value="#DDD" />
	<param name="wmode" value="opaque" />
	<embed src="./swf/news.swf" quality="high" wmode="opaque"
		bgcolor="#DDD" width="400" height="22" name="swf/news" align="left"
		allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
		pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>
</div>
